home *** CD-ROM | disk | FTP | other *** search
/ Super League / Super League.iso / TUTORIAL / CURSO / WHERE.DXR / 00019.ls < prev    next >
Encoding:
Text File  |  1997-03-25  |  2.3 KB  |  87 lines

  1. on enterFrame
  2.   global var1, var2
  3.   if chars(var2, 6, 6) = "a" then
  4.     if var1 <= 5 then
  5.       set the visible of sprite 29 to 1
  6.       set the visible of sprite 38 to 1
  7.       set the visible of sprite 39 to 1
  8.     else
  9.       if var1 <= 10 then
  10.         set the visible of sprite 29 to 1
  11.         set the visible of sprite 38 to 1
  12.         set the visible of sprite 40 to 1
  13.       end if
  14.     end if
  15.     if var1 = 15 then
  16.       set the visible of sprite 29 to 1
  17.       set the visible of sprite 38 to 1
  18.       set the visible of sprite 41 to 1
  19.     else
  20.       if var1 <= 20 then
  21.         set the visible of sprite 29 to 1
  22.         set the visible of sprite 38 to 1
  23.         set the visible of sprite 42 to 1
  24.       else
  25.         if var1 <= 25 then
  26.           set the visible of sprite 29 to 1
  27.           set the visible of sprite 38 to 1
  28.           set the visible of sprite 43 to 1
  29.         else
  30.           if var1 <= 30 then
  31.             set the visible of sprite 29 to 1
  32.             set the visible of sprite 38 to 1
  33.             set the visible of sprite 44 to 1
  34.           else
  35.             if var1 <= 35 then
  36.               set the visible of sprite 29 to 1
  37.               set the visible of sprite 38 to 1
  38.               set the visible of sprite 45 to 1
  39.             end if
  40.           end if
  41.         end if
  42.       end if
  43.     end if
  44.   else
  45.     if var1 = 5 then
  46.       set the visible of sprite 30 to 1
  47.     else
  48.       if var1 <= 10 then
  49.         set the visible of sprite 31 to 1
  50.       else
  51.         if var1 <= 15 then
  52.           set the visible of sprite 32 to 1
  53.         else
  54.           if var1 <= 20 then
  55.             set the visible of sprite 33 to 1
  56.           else
  57.             if var1 <= 25 then
  58.               set the visible of sprite 34 to 1
  59.             else
  60.               if var1 <= 30 then
  61.                 set the visible of sprite 35 to 1
  62.               else
  63.                 if var1 <= 35 then
  64.                   set the visible of sprite 36 to 1
  65.                 else
  66.                   if var1 <= 40 then
  67.                     set the visible of sprite 37 to 1
  68.                   else
  69.                     if var1 <= 45 then
  70.                       set the visible of sprite 38 to 1
  71.                     end if
  72.                   end if
  73.                 end if
  74.               end if
  75.             end if
  76.           end if
  77.         end if
  78.       end if
  79.     end if
  80.   end if
  81. end
  82.  
  83. on exitFrame
  84.   general()
  85.   go(#loop)
  86. end
  87.